package com.forum.domain;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Groups entity. @author MyEclipse Persistence Tools
 */

public class Groups implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private String name;
	private String introduction;
	private Date builddate;
	private Boolean openness;
	private Integer followercount;
	private Set topics = new HashSet(0);
	private Set ucgs = new HashSet(0);

	// Constructors

	/** default constructor */
	public Groups() {
	}

	/** minimal constructor */
	public Groups(User user, String name, String introduction, Date builddate,
			Boolean openness, Integer followercount) {
		this.user = user;
		this.name = name;
		this.introduction = introduction;
		this.builddate = builddate;
		this.openness = openness;
		this.followercount = followercount;
	}

	/** full constructor */
	public Groups(User user, String name, String introduction, Date builddate,
			Boolean openness, Integer followercount, Set topics, Set ucgs) {
		this.user = user;
		this.name = name;
		this.introduction = introduction;
		this.builddate = builddate;
		this.openness = openness;
		this.followercount = followercount;
		this.topics = topics;
		this.ucgs = ucgs;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIntroduction() {
		return this.introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}

	public Date getBuilddate() {
		return this.builddate;
	}

	public void setBuilddate(Date builddate) {
		this.builddate = builddate;
	}

	public Boolean getOpenness() {
		return this.openness;
	}

	public void setOpenness(Boolean openness) {
		this.openness = openness;
	}

	public Integer getFollowercount() {
		return this.followercount;
	}

	public void setFollowercount(Integer followercount) {
		this.followercount = followercount;
	}

	public Set getTopics() {
		return this.topics;
	}

	public void setTopics(Set topics) {
		this.topics = topics;
	}

	public Set getUcgs() {
		return this.ucgs;
	}

	public void setUcgs(Set ucgs) {
		this.ucgs = ucgs;
	}

}